<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_client_tracking.css" />
<link rel="stylesheet" href="${staticServer}/css/consultant_student_read.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/model_resp.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/htmlfilter.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/tips.js"></script>
<script src="${staticServer}/js/web/esl.js"></script>
<!-- <script src="${staticServer}/js/web/echarts.js"></script> -->
<style type="text/css">
#statelist label {
	display: block;
	float: left;
	width: 120px;
}
div#container table td {
    padding-left: 0px;
    padding-right: 0px;
    border: 1px solid #D0D0D0;
}
table tr>td {
    font-size: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 25px;
    height: 25px;
}
</style>
<script>
$(function(){
});

function submit(){
	window.location.href="${contextPath}/statis/system_qudao_statis3.htm?time="+$("#time").val();
}
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>资源统计管理</li>
			<li>&gt;</li>
			<li class="current">每日资源统计</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">每日资源统计</div>
		<table class="form_table">
			<tr>
				<td>
					<div style="overflow: hidden;">
						<label><b>查询条件：</b></label>
						<label for="start_date">日期：</label>
						<input type="text" id="time" size="15" value="${time}" rel="DATE::Y-m-d" /> 
						<input type="button" value=" 查 询 " onclick="submit()" />
					</div>
				</td>
			</tr>
		</table>
		<table style="width:100%;">
			<tbody>
				<tr class="even_row">
					<#list list_date as date>
						<td align="center">${date}</td>
					</#list>
	        	</tr>
				<tr class="odd_row">
					<td align="center" valign="top">
						<#if slist_0??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_0}</span></div>
							<#list slist_0 as slist_0>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_0.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_0.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_1??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_1}</span></div>
							<#list slist_1 as slist_1>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_1.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_1.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_2??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_2}</span></div>
							<#list slist_2 as slist_2>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_2.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_2.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_3??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_3}</span></div>
							<#list slist_3 as slist_3>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_3.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_3.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_4??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_4}</span></div>
							<#list slist_4 as slist_4>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_4.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_4.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_5??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_5}</span></div>
							<#list slist_5 as slist_5>
								<div>
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_5.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_5.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
					<td align="center" valign="top">
						<#if slist_6??>
							<div>合计：<span style="color: red;font-size: 14pt;">${vote_hj_6}</span></div>
							<#list slist_6 as slist_6>
								<div >
									<div style="float: left;width:70%;margin-top: 20px;">
										${slist_6.name}
									</div>
									<div style="float: right;width:30%;margin-top: 20px;">
										${slist_6.answer}
									</div>
								</div>
							</#list>
						</#if>
					</td>
	        	</tr>
			</tbody>
		</table>
		
		<table style="width:100%;">
			<tbody>
				<tr class="even_row">
					<td align="center">重复电话</td>
					<td align="center">重复渠道</td>
					<td align="center">重复次数</td>
					<td align="center">重复时间</td>
	        	</tr>
	        	<#if chongFu??>
		        	<#list chongFu as chongFu>
						<tr class="odd_row">
							<td align="center">${chongFu.phone}</td>
							<td align="center">${chongFu.name}</td>
							<td align="center">${chongFu.count}</td>
							<td align="center">${chongFu.cdate}</td>
			        	</tr>
	        		</#list>
	        	</#if>
			</tbody>
		</table>
	</div>
	<div class="emptyline"></div>
</body>
<!--
<script>
	require.config({
        paths:{ 
            'echarts' : 'http://echarts.baidu.com/build/echarts',
            'echarts/chart/bar' : 'http://echarts.baidu.com/build/echarts'
        }
    });
    
    var week = ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"];
    var datas1 = [<#if zwjCount??><#list zwjCount?split(",") as name>"${name}",</#list></#if>];
    var datas2 = [<#if ddcount??><#list ddcount?split(",") as name>"${name}",</#list></#if>];
    // 周统计
    require(
        [
            'echarts',
            'echarts/chart/bar' // 使用柱状图就加载bar模块，按需加载
        ],
        function (ec) {
            // 基于准备好的dom，初始化echarts图表
            var myChart = ec.init(document.getElementById('week')); 
            
            var option = {
                tooltip: {
                    show: true
                },
                legend: {
                    data:['总计','当地有中心问卷']
                },
                xAxis : [
                    {
                        type : 'category',
                        data : week
                    }
                ],
                yAxis : [
                    {
                        type : 'value'
                    }
                ],
                series : [
                    {
                        "name":"总计",
                        "type":"bar",
                        "data":datas1
                    },
                    {
                        "name":"当地有中心问卷",
                        "type":"bar",
                        "data":datas2
                    }
                ]
            };
    
            // 为echarts对象加载数据 
            myChart.setOption(option); 
        }
    );
    
</script>
-->
</html>